<template>
  <el-card>
    <template #header>订单统计</template>

    <div>
      <!-- 1.0 查询的表单 -->
      <el-form
        :inline="true"
        :model="searchForm"
        class="demo-form-inline"
        size="mini"
      >
        <el-form-item label="时间范围">
          <el-date-picker
            v-model="searchForm.date"
            type="daterange"
            range-separator="至"
            start-placeholder="开始日期"
            end-placeholder="结束日期"
          >
          </el-date-picker>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="onSubmit">查询</el-button>
        </el-form-item>
      </el-form>

      <!-- 2.0 显示的图表 -->
      <Chart :option="option1" />
    </div>
  </el-card>
</template>

<script>
import option1 from './option1'

export default {
  data() {
    return {
      searchForm: {
        date: []
      },
      option1
    }
  },
  methods: {
    onSubmit() {}
  }
}
</script>

<style lang="less" scoped></style>
